package com.kele.service;

import com.github.pagehelper.PageInfo;
import com.kele.pojo.Role;
import com.kele.pojo.User;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;
import java.util.Map;

public interface UserService extends UserDetailsService {

    //根据用户名查询user对象
    User getUserByUsername(String username);

    //根据用户id查询用户具有的角色
    List<Role> getUserRoleById(int userId);

    //查询出所有的用户信息
    PageInfo<User> getAllUser(int pageNum, int pageSize, Map map);
}
